/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.dto;

import com.intelligent.ispc.common.dto.AbstractValueObject;

/**
 * Created by YangXiong on 2016/2/18.
 */
public class PSAttributeDto extends AbstractValueObject implements Comparable<PSAttributeDto>{

    private Long id;
    private String name;
    private String value;
    private Boolean isDefault;
    private Boolean isShow;
    private ProjectDto project;

    @Override
    public int compareTo(PSAttributeDto a) {
        return this.name.compareTo(a.getName());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    public Boolean getIsShow() {return isShow;}

    public void setIsShow(Boolean isShow) {this.isShow = isShow;}

    public ProjectDto getProject() {
        return project;
    }

    public void setProject(ProjectDto project) {
        this.project = project;
    }
}
